package ClassObject;

public class ProvinceMessage {
    //        public String name;//名字
    public String address;//省份
    public String dateTime;// 截止到当前时间的时间,本来应该是EventTime,但是我们这里简化了直接用当前系统时间即可
    public double totalPrice=0D;//总金额
    public long num=0L;//销量数
    public ProvinceMessage(){}

    public ProvinceMessage(String address,String dateTime,long num, double roundPrice) {
//            this.name=name;
        this.address=address;
        this.totalPrice+=roundPrice;
        this.dateTime=dateTime;
        this.num+=num;
    }
    //
    public double getTotalPrice() {
        return totalPrice;
    }
    public double getNum() {
        return num;
    }
    public String getAddress() {
        return address;
    }
}